package com.zch.wrapper;

@SuppressWarnings({"all"})
public class WrapperMethod {
    public static void main(String[] args) {
        //注意是用包装类.方法名的形式，若用类对象的话无法调用方法，全是静态方法
        Character character = 's';
        System.out.println(Character.isDigit(character));  //是否为数字
        System.out.println(Character.isLetter(character));  //是否为字符
        System.out.println(Character.isUpperCase(character));   //是否大写
        System.out.println(Character.isLowerCase(character));   //是否小写
        System.out.println(Character.toUpperCase(character));   //转换为大写

        Integer x = 5;
        System.out.println(x.compareTo(3)); // 输出 1
        System.out.println(x.compareTo(5)); // 输出 0
        System.out.println(x.compareTo(8)); // 输出 -1
    }
}
